package com.zhejiangzhengyuan.municipal_common.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhejiangzhengyuan.municipal_common.entity.vo.OneWayCaseNoHandVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author :linju
 * @create on : 2019/12/4
 */
@Repository
public interface OneWayCaseMapper {
  Page<OneWayCaseNoHandVo> selectInspectionPage(Page<OneWayCaseNoHandVo> page,@Param("caseType") String caseType,
                                                @Param("dataOrigin")  String dataOrigin,
                                                @Param("reason")  String reason,
                                                @Param("username")  String name,
                                                @Param("startTimestamp")  String startTimestamp,
                                                @Param("endTimestamp")  String endTimestamp);

  List<OneWayCaseNoHandVo> selectInspectionPage(@Param("caseType") String caseType);

  Page<OneWayCaseNoHandVo> selectInspectionCaseHandingPage(Page<OneWayCaseNoHandVo> page,@Param("caseType") String caseType,
                                                           @Param("dataOrigin")  String dataOrigin,
                                                           @Param("reason")  String reason,
                                                           @Param("username")  String name,
                                                           @Param("startTimestamp")  String startTimestamp,
                                                           @Param("endTimestamp")  String endTimestamp);

  List<OneWayCaseNoHandVo> selectInspectionCaseHandingPage(@Param("caseType") String caseType);

  Page<OneWayCaseNoHandVo> selectInspectionCaseIsHandledPage(Page<OneWayCaseNoHandVo> page,@Param("caseType") String caseType,
                                                             @Param("dataOrigin")  String dataOrigin,
                                                             @Param("reason")  String reason,
                                                             @Param("username")  String name,
                                                             @Param("startTimestamp")  String startTimestamp,
                                                             @Param("endTimestamp")  String endTimestamp);

  List<OneWayCaseNoHandVo> selectInspectionCaseIsHandledPage(@Param("caseType") String caseType);

  List<OneWayCaseNoHandVo> selectInspectionNewTest(@Param("caseType") String caseType);

  Page<OneWayCaseNoHandVo> selectInspectionCaseOnlyHandingPage(Page<OneWayCaseNoHandVo> page,@Param("caseType") String caseType);
}
